import request from '@/utils/request'
// 获取面经列表
export const getArticleList = (params) => {
  return request({
    method: 'get',
    url: '/admin/interview/query',
    params
  })
}
// 删除
export const delArticle = (id) => {
  return request({
    method: 'delete',
    url: '/admin/interview/remove',
    data: { id }
  })
}
// 添加
export const addArticle = (data) => {
  return request({
    method: 'post',
    url: '/admin/interview/create',
    data
  })
}
// 获取单个面经详情
export const viewArticle = (id) => {
  return request({
    method: 'get',
    url: '/admin/interview/show',
    params: { id }
  })
}
// 更改
export const changeArticle = (data) => {
  return request({
    method: 'put',
    url: '/admin/interview/update',
    data
  })
}
